//
//  VoteListViewModel.h
//  meiyinxiang
//
//  Created by 媒印象 on 05/12/2017.
//  Copyright © 2017 hbjApple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MYXVoteModel.h"
typedef void (^VotelistFinishBlock)(BOOL);
typedef void (^VoteFinishBlock)(BOOL);

@interface VoteViewModel: NSObject
@property (nonatomic,strong) NSString *age;
@property (nonatomic,strong) NSString *create_time;
@property (nonatomic,strong) NSString *voteid;
@property (nonatomic,strong) NSString *image;
@property (nonatomic,strong) NSString *name;
@property (nonatomic,strong) NSString *tel;
@property (nonatomic,strong) NSString *uid;
@property (nonatomic,strong) NSString *vote_num;
- (VoteViewModel *)initWithModel:(MYXVoteModel *)model;
- (void)voteWithResult:(VoteFinishBlock)result;
- (void)dosomting;
@end

@interface VoteListViewModel : NSObject
@property (nonatomic,assign) NSInteger page;
@property (nonatomic,strong) NSMutableArray *viewModelArray;
@property (nonatomic,strong) NSMutableArray *searchResultViewModel;
- (void)loadDataWithIsPullUp:(BOOL)isPullup withResult:(VotelistFinishBlock)result;
- (void)searchPersonWithKeyword:(NSString *)keyword
                     withResult:(VoteFinishBlock)result;

@end
